package com.bms.cfcmms.model.system;

import com.bms.cfcmms.model.BaseModel;
import com.bms.cfcmms.util.annotation.FieldDefine;
import com.bms.cfcmms.util.annotation.TableDefine;
import lombok.Data;

import javax.persistence.Column;

/**
 * Created by carl on 2016/4/15.
 */
@Data
@TableDefine(group = "系统设置",
        primaryKey = "departmentClassId", id = 9904, title = "部门类型")
public class DepartmentClass extends BaseModel {

    @FieldDefine(title = "部门类型编码", number = 10)
    @Column(length = 10, nullable = false)
    private String departmentClassId;

    @FieldDefine(title = "部门类型名称", nameField = true, number = 20)
    @Column(length = 50, nullable = false)
    private String name;

    @FieldDefine(title = "备注", number = 30)
    private String remark;
}
